import request from '../utils/request'
export interface IPeo {
    adminid:String
}
export interface IPeoAdd {
    adminname:string
    password:string
    role:string
    checkedKeys:[]
}
export const getAdminL = ()=> {
    return request({
        url:'/admin/list',
        method:'GET'
    })
}
export const delectAdminL = (data:IPeo)=> {
    return request({
        url:'/admin/delete',
        method:'POST',
        data
    })
}
export const addAdminL = (data:IPeoAdd)=> {
    return request({
        url:'/admin/add',
        method:'POST',
        data
    })
}
export const changeAdminL = (data:IPeoAdd)=> {
    return request({
        url:'/admin/update',
        method:'POST',
        data
    })
}
export const getUser = ()=> {
    return request({
        url:'/user/list',
        method:'GET',
    })
}